package org.zhadoop.stream.cql.semanticanalyzer.parser.context;

import java.util.List;

import org.zhadoop.stream.cql.DriverContext;
import org.zhadoop.stream.cql.exception.CQLException;
import org.zhadoop.stream.cql.hooks.SemanticAnalyzeHook;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextwalker.ParseContextWalker;
import org.zhadoop.stream.cql.tasks.LazyTask;
import org.zhadoop.stream.cql.tasks.Task;

public abstract class CreateStreamStatementContext extends ParseContext {
	
	private String streamName;
	
	private ColumnNameTypeListContext columns;

	@Override
	public Task createTask(DriverContext driverContext, List<SemanticAnalyzeHook> analyzeHooks) throws CQLException {
		Task task = new LazyTask();
		return task;
	}
	
	@Override
	protected void walkChild(ParseContextWalker walker) {
		walkExpression(walker, columns);
	}
	
	public String getStreamName() {
		return streamName;
	}

	public void setStreamName(String streamName) {
		this.streamName = streamName;
	}

	public ColumnNameTypeListContext getColumns() {
		return columns;
	}

	public void setColumns(ColumnNameTypeListContext columns) {
		this.columns = columns;
	}
	
	
	
	
}
